<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
    <script src="${pageContext.request.contextPath}/layui/layui.js"></script>
</head>
<body>
    <table  class="layui-table">
        <thread>
            <tr>
                <th>序号</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
                <th>身高</th>
                <th>出生日期</th>
                <th>部门</th>
                <th>操作</th>
            </tr>
        </thread>
        <tbody>
            <c:forEach items="${pageInfo.list}" var="emp" varStatus="status">
                <tr>
                    <td>${status.index+1}</td>
                    <td>${emp.name}</td>
                    <td>${emp.age}</td>
                    <td>${emp.sex}</td>
                    <td>${emp.height}</td>
                    <td>${emp.birthday}</td>
                    <td>${emp.department.name}</td>
                    <td>
                        <a href="toModify.emp?id=${emp.id}" class="btn">修改</a>
                        <a href="removeById.emp?id=${emp.id}" class="btn">删除</a>
                    </td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
</body>
</html>
